package com.llt.job.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.llt.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author llt
 * @since 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam")
public class Exam extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 竞赛id（主键）
     */
    @TableId(value = "exam_id", type = IdType.ASSIGN_ID)
    private Long examId;

    /**
     * 竞赛标题
     */
    private String title;

    /**
     * 竞赛开始时间
     */
    private LocalDateTime startTime;

    /**
     * 竞赛结束时间
     */
    private LocalDateTime endTime;

    /**
     * 是否发布 0: 未发布  1: 已发布
     */
    private Integer status;
}
